﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E63 RID: 3683
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueAvatarReviveCost : IMessage<RogueAvatarReviveCost>, IMessage, IEquatable<RogueAvatarReviveCost>, IDeepCloneable<RogueAvatarReviveCost>, IBufferMessage
	{
		// Token: 0x17002ECE RID: 11982
		// (get) Token: 0x0600A559 RID: 42329 RVA: 0x001BD8ED File Offset: 0x001BBAED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueAvatarReviveCost> Parser
		{
			get
			{
				return RogueAvatarReviveCost._parser;
			}
		}

		// Token: 0x17002ECF RID: 11983
		// (get) Token: 0x0600A55A RID: 42330 RVA: 0x001BD8F4 File Offset: 0x001BBAF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueAvatarReviveCostReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002ED0 RID: 11984
		// (get) Token: 0x0600A55B RID: 42331 RVA: 0x001BD906 File Offset: 0x001BBB06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueAvatarReviveCost.Descriptor;
			}
		}

		// Token: 0x0600A55C RID: 42332 RVA: 0x001BD90D File Offset: 0x001BBB0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost()
		{
		}

		// Token: 0x0600A55D RID: 42333 RVA: 0x001BD915 File Offset: 0x001BBB15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost(RogueAvatarReviveCost other) : this()
		{
			this.rogueReviveCost_ = ((other.rogueReviveCost_ != null) ? other.rogueReviveCost_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A55E RID: 42334 RVA: 0x001BD94A File Offset: 0x001BBB4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost Clone()
		{
			return new RogueAvatarReviveCost(this);
		}

		// Token: 0x17002ED1 RID: 11985
		// (get) Token: 0x0600A55F RID: 42335 RVA: 0x001BD952 File Offset: 0x001BBB52
		// (set) Token: 0x0600A560 RID: 42336 RVA: 0x001BD95A File Offset: 0x001BBB5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData RogueReviveCost
		{
			get
			{
				return this.rogueReviveCost_;
			}
			set
			{
				this.rogueReviveCost_ = value;
			}
		}

		// Token: 0x0600A561 RID: 42337 RVA: 0x001BD963 File Offset: 0x001BBB63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueAvatarReviveCost);
		}

		// Token: 0x0600A562 RID: 42338 RVA: 0x001BD971 File Offset: 0x001BBB71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueAvatarReviveCost other)
		{
			return other != null && (other == this || (object.Equals(this.RogueReviveCost, other.RogueReviveCost) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A563 RID: 42339 RVA: 0x001BD9A4 File Offset: 0x001BBBA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueReviveCost_ != null)
			{
				num ^= this.RogueReviveCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A564 RID: 42340 RVA: 0x001BD9E0 File Offset: 0x001BBBE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A565 RID: 42341 RVA: 0x001BD9E8 File Offset: 0x001BBBE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A566 RID: 42342 RVA: 0x001BD9F1 File Offset: 0x001BBBF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueReviveCost_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A567 RID: 42343 RVA: 0x001BDA24 File Offset: 0x001BBC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueReviveCost_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A568 RID: 42344 RVA: 0x001BDA64 File Offset: 0x001BBC64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueAvatarReviveCost other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueReviveCost_ != null)
			{
				if (this.rogueReviveCost_ == null)
				{
					this.RogueReviveCost = new ItemCostData();
				}
				this.RogueReviveCost.MergeFrom(other.RogueReviveCost);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A569 RID: 42345 RVA: 0x001BDAB8 File Offset: 0x001BBCB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A56A RID: 42346 RVA: 0x001BDAC4 File Offset: 0x001BBCC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.rogueReviveCost_ == null)
					{
						this.RogueReviveCost = new ItemCostData();
					}
					input.ReadMessage(this.RogueReviveCost);
				}
			}
		}

		// Token: 0x04004344 RID: 17220
		private static readonly MessageParser<RogueAvatarReviveCost> _parser = new MessageParser<RogueAvatarReviveCost>(() => new RogueAvatarReviveCost());

		// Token: 0x04004345 RID: 17221
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004346 RID: 17222
		public const int RogueReviveCostFieldNumber = 12;

		// Token: 0x04004347 RID: 17223
		private ItemCostData rogueReviveCost_;
	}
}
